package jdk.thread.threadpool;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;

/**
 * Executor -> 执行者
 */
public class ExecutorsTest {

    public static void main(String[] args) {
        ExecutorService service1 = Executors.newFixedThreadPool(100);
        ExecutorService service2 = Executors.newCachedThreadPool();
        Executors.newSingleThreadExecutor();
        Executors.defaultThreadFactory();
        Executors.newWorkStealingPool();
        Executors.newWorkStealingPool(2);
        Executors.unconfigurableExecutorService(null);
    }
}
